<?php

namespace common\models\system;

use yii\db\ActiveRecord;

/**
 * Desc 角色
 */
class RoleModel extends ActiveRecord {

    //超级管理员标识
    const SUPER_ADMIN = -1;
    
    //状态-启用
    const STATUS_ENABLE = 1;
    //状态-禁用
    const STATUS_DISABLE = 2;

    public static $status = [
        self::STATUS_ENABLE => '启用',
        self::STATUS_DISABLE => '禁用',
    ];

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%role}}';
    }

}
